package com.mc.ddd;

import com.mc.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author fumengchao
 * @ClassName DddTest.java
 * @Description TODO
 * @createTime 2020 1225 14:54:00
 */
@Component
public class DddTest {

    @Autowired
    private DddVoFactory dddVoFactory;

    public Result execute(){
        DddInfoE dddInfoE = dddVoFactory.getDddInfoE();
        dddInfoE.setId(1);
        DddCo dddCo = dddInfoE.getUserById();
        Result<DddCo> success = Result.success(dddCo);
        return success;

    }
}